package com.lemontree.spring.springconifg;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.lemontree.spring.model.User;

@Configuration
public class Config {

    @Bean
    public User user(){
        User user = new User();
        user.setAge(11);
        user.setPassword("2222");
        user.setUserName("hello");
        return user;
    }
}
